/*
 * Copyright (C) 2012 The Yuike Mobile Develop Common Framework Project
 *
 * YkAnimationSequence.h
 * 
 * @brief: 		一堆动画播放的类
 * 
 * @author   	wanggang
 * @date     	2012-1-5
 */


/*
 [[YkAnimationSequence sequenceWithSteps:
 [YkAnimationStep for:0.5 animate:^{ self.revertButton.alpha = 0.0; }],
 [YkAnimationSequence sequenceWithSteps:
 [YkAnimationStep after:0.7 for:1.0 animate:^{ [self highlightLabel:self.labelStep3];
 self.theBox.transform = CGAffineTransformIdentity; }],
 [YkAnimationStep after:0.7 for:1.0 animate:^{ [self highlightLabel:self.labelStep2];
 self.theBox.backgroundColor = [UIColor greenColor]; }],
 [YkAnimationStep after:0.7 for:1.0 animate:^{ [self highlightLabel:self.labelStep1];
 self.theBox.frame = CGRectMake(100, 100, 100, 100); }],
 [YkAnimationStep after:0.0         animate:^{ [self highlightLabel:nil]; }],
 nil
 ],
 [YkAnimationStep for:0.5 animate:^{ self.startButton.alpha = 1.0; }],
 nil
 ] run];
 
 
 YkAnimationSequence* animationSequence = [YkAnimationSequence sequenceWithSteps:
 [YkAnimationStep for:0.5 animate:^{ self.startButton.alpha = 0.0; }],
 [self viewSpecificStartAnimation],
 [YkAnimationStep for:0.5 animate:^{ self.revertButton.alpha = 1.0; }],
 nil];
 [animationSequence run];
 
 
 
 */
#import <Foundation/Foundation.h>
#import "YkAnimationStep.h"

@interface YkAnimationSequence : YkAnimationStep
{
    NSArray* steps;
}

/**
 * @brief:	实例化对象
 * @param   运行需要的动画串
 * @return  id 	实例化后的对象	  
 * @note 
 */
+ (id) sequenceWithSteps:(YkAnimationStep*) first, ... NS_REQUIRES_NIL_TERMINATION;
@property (nonatomic, strong, readonly) NSArray* steps;

@end
